<!DOCTYPE html>
<!-- saved from url=(0041)http://c.biancheng.net/view/vip_7049.html -->
<html lang="zh-CN"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><script type="text/javascript" async="" charset="utf-8" src="./3.13Java项目实战：判断闰年平年并输出某月的天数_files/core.php"></script>

<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
<!-- 启用Chromium高速渲染模式 -->
<meta name="renderer" content="webkit">
<meta name="force-rendering" content="webkit">
<!-- 禁止百度转码 -->
<meta name="applicable-device" content="pc,mobile">
<meta name="MobileOptimized" content="width">
<meta name="HandheldFriendly" content="true">
<meta http-equiv="Cache-Control" content="no-transform">
<meta http-equiv="Cache-Control" content="no-siteapp">
<!-- 禁止识别电话号码 -->
<meta name="format-detection" content="telephone=no">

<link rel="shortcut icon" href="http://c.biancheng.net/favicon.ico?v=1.6.72">
<link href="./3.13Java项目实战：判断闰年平年并输出某月的天数_files/common.css" rel="stylesheet">
<title>Java项目实战：判断闰年平年并输出某月的天数</title>
<meta name="description" content="所谓闰年，就是指 2 月有 29 天的那一年。闰年同时满足以下条件： 年份能被 4 整除。 年份若是 100 的整数倍，须被 400 整除，否则是平年。 例如，1900 年能被 4 整除，但是因为其是 10">
</head>
<body>
<div id="topbar" class="clearfix">
	<ul id="product-type" class="left">
		<li>
			<a href="http://c.biancheng.net/"><span class="iconfont iconfont-home"></span>首页</a>
		</li>
		<li class="active">
			<a href="http://c.biancheng.net/sitemap/" rel="nofollow"><span class="iconfont iconfont-book"></span>教程</a>
		</li>
		<li>
			<a href="http://vip.biancheng.net/p/vip/show.php" rel="nofollow" target="_blank"><span class="iconfont iconfont-vip"></span>VIP会员</a>
		</li>
		<li>
			<a href="http://vip.biancheng.net/p/q2a/show.php" rel="nofollow" target="_blank"><span class="iconfont iconfont-q2a"></span>一对一答疑</a>
		</li>
		<li>
			<a href="http://fudao.biancheng.net/" rel="nofollow" target="_blank"><span class="iconfont iconfont-fudao"></span>辅导班</a>
		</li>
	</ul>
</div>
<div id="header" class="clearfix">
	<a id="logo" class="left" href="http://c.biancheng.net/">
		<img height="26" src="./3.13Java项目实战：判断闰年平年并输出某月的天数_files/logo.png" alt="C语言中文网">
	</a>
	<ul id="nav-main" class="hover-none left clearfix">
		<li class="wap-yes"><a href="http://c.biancheng.net/">首页</a></li>
		<li><a href="http://c.biancheng.net/c/">C语言教程</a></li>
		<li><a href="http://c.biancheng.net/cplus/">C++教程</a></li>
		<li><a href="http://c.biancheng.net/python/">Python教程</a></li>
		<li><a href="http://c.biancheng.net/java/">Java教程</a></li>
		<li><a href="http://c.biancheng.net/linux_tutorial/">Linux入门</a></li>
		<li><a href="http://c.biancheng.net/sitemap/" title="网站地图">更多&gt;&gt;</a></li>
	</ul>
	<span id="sidebar-toggle" class="toggle-btn" toggle-target="#sidebar">目录 <span class="glyphicon"></span></span>

	<a href="http://vip.biancheng.net/?from=topbar" class="user-info glyphicon glyphicon-user hover-none" target="_blank" rel="nofollow" title="用户中心"></a>
</div>
<div id="main" class="clearfix">
	<div id="sidebar" class="toggle-target">
	<div id="contents">
		<dt><span class="glyphicon glyphicon-option-vertical" aria-hidden="true"></span><a href="http://c.biancheng.net/java/">Java教程</a></dt>
		
			<dd>
				<span class="channel-num">1</span>
				<a href="http://c.biancheng.net/java/10/">Java入门基础及环境搭建</a>
			</dd>
		
			<dd>
				<span class="channel-num">2</span>
				<a href="http://c.biancheng.net/java/20/">Java程序设计基础</a>
			</dd>
		<dd class="this"> <span class="channel-num">3</span> <a href="http://c.biancheng.net/java/30/">Java流程控制语句</a> </dd><dl class="dl-sub"><dd>3.1 <a href="http://c.biancheng.net/view/724.html">Java语句</a></dd><dd>3.2 <a href="http://c.biancheng.net/view/5737.html">Java if else语句</a></dd><dd>3.3 <a href="http://c.biancheng.net/view/738.html">Java switch case语句</a></dd><dd>3.4 <a href="http://c.biancheng.net/view/vip_7047.html">【Java项目实战】实现淡旺季飞机票打折</a><span class="glyphicon glyphicon-usd"></span></dd><dd>3.5 <a href="http://c.biancheng.net/view/vip_7048.html">【Java项目实战】根据出生日期计算星座</a><span class="glyphicon glyphicon-usd"></span></dd><dd>3.6 <a href="http://c.biancheng.net/view/5742.html">Java while循环</a></dd><dd>3.7 <a href="http://c.biancheng.net/view/5743.html">Java for循环</a></dd><dd>3.8 <a href="http://c.biancheng.net/view/5746.html">Java for循环嵌套</a></dd><dd>3.9 <a href="http://c.biancheng.net/view/750.html">Java foreach语句</a></dd><dd>3.10 <a href="http://c.biancheng.net/view/751.html">Java return语句</a></dd><dd>3.11 <a href="http://c.biancheng.net/view/5755.html">Java break语句详解</a></dd><dd>3.12 <a href="http://c.biancheng.net/view/756.html">Java continue语句</a></dd><dd class="active">3.13 <a href="http://c.biancheng.net/view/vip_7049.html">【Java项目实战】判断闰年平年并输出某月的天数</a><span class="glyphicon glyphicon-usd"></span></dd><dd>3.14 <a href="http://c.biancheng.net/view/760.html">Java输出杨辉三角形</a></dd><dd>3.15 <a href="http://c.biancheng.net/view/5769.html">Java选择结构和循环结构的总结</a></dd></dl>
			<dd>
				<span class="channel-num">4</span>
				<a href="http://c.biancheng.net/java/40/">Java字符串处理</a>
			</dd>
		
			<dd>
				<span class="channel-num">5</span>
				<a href="http://c.biancheng.net/java/50/">Java数字和日期处理</a>
			</dd>
		
			<dd>
				<span class="channel-num">6</span>
				<a href="http://c.biancheng.net/java/60/">Java内置包装类</a>
			</dd>
		
			<dd>
				<span class="channel-num">7</span>
				<a href="http://c.biancheng.net/java/70/">Java数组处理</a>
			</dd>
		
			<dd>
				<span class="channel-num">8</span>
				<a href="http://c.biancheng.net/java/80/">Java类和对象</a>
			</dd>
		
			<dd>
				<span class="channel-num">9</span>
				<a href="http://c.biancheng.net/java/90/">Java继承和多态</a>
			</dd>
		
			<dd>
				<span class="channel-num">10</span>
				<a href="http://c.biancheng.net/java/100/">Java异常处理</a>
			</dd>
		
			<dd>
				<span class="channel-num">11</span>
				<a href="http://c.biancheng.net/java/110/">Java集合、泛型和枚举</a>
			</dd>
		
			<dd>
				<span class="channel-num">12</span>
				<a href="http://c.biancheng.net/java/120/">Java反射机制</a>
			</dd>
		
			<dd>
				<span class="channel-num">13</span>
				<a href="http://c.biancheng.net/java/130/">Java输入/输出流</a>
			</dd>
		
			<dd>
				<span class="channel-num">14</span>
				<a href="http://c.biancheng.net/java/java/135/">Java注解</a>
			</dd>
		
	</div>
</div>
	<div id="article-wrap">
		<div id="article">
			<div class="arc-info">
	<span class="position"><span class="glyphicon glyphicon-map-marker"></span> <a href="http://c.biancheng.net/">首页</a> &gt; <a href="http://c.biancheng.net/java/">Java教程</a> &gt; <a href="http://c.biancheng.net/java/30/">Java流程控制语句</a></span>
	<span class="read-num">阅读：7,422</span>
</div>

<div id="ad-position-bottom"></div>
			<h1>Java项目实战：判断闰年平年并输出某月的天数</h1>
			<div class="pre-next-page clearfix">
                    <span class="pre left"><span class="icon">&lt;</span> <span class="text-brief text-brief-pre">上一页</span><a href="http://c.biancheng.net/view/756.html">Java continue语句</a></span>
                    <span class="next right"><a href="http://c.biancheng.net/view/760.html">Java输出杨辉三角形</a><span class="text-brief text-brief-next">下一页</span> <span class="icon">&gt;</span></span>
                </div>
			<div id="ad-arc-top"><p class="pic"></p><p class="text" adid="java-1v1q2a"><a href="http://c.biancheng.net/view/7552.html" target="_blank" style="color: #D33428;">C语言中文网推出辅导班啦，包括<span style="color: #008000;">「C语言辅导班、C++辅导班、算法/数据结构辅导班」</span>，全部都是一对一教学：一对一辅导 + 一对一答疑 + 布置作业 + 项目实践 + 永久学习。QQ在线，随时响应！</a></p></div>
			<div id="arc-body">所谓闰年，就是指 2 月有 29 天的那一年。闰年同时满足以下条件：
<ul>
	<li>
		年份能被 4 整除。</li>
	<li>
		年份若是 100 的整数倍，须被 400 整除，否则是平年。</li>
</ul>
<br>
例如，1900 年能被 4 整除，但是因为其是 100 的整数倍，却不能被 400 整除，所以是平年；而 2000 年就是闰年；1904 年和 2004 年、2008 年等直接能被 4 整除且不能被 100 整除，都是闰年；2014 是平年。<br>
<br>
下面综合本章学习的知识来编写一个判断闰年的案例，其主要功能如下：
<ol>
	<li>
		判断用户输入的年份是不是闰年。</li>
	<li>
		&nbsp;根据年份和月份输出某年某月的天数。</li>
</ol>
<br>
实现步骤分为以下几步：<br>
<br>
1）新建一个类并在该类中导入需要的 java.util.Scanner 类，同时需要创建该类的入口方法 main()，其实现代码如下：
<div class="snippet-container" style="undefined;"><div class="sh_bright snippet-wrap"><div class="snippet-menu sh_sourceCode" style="display: none;"><pre><a class="snippet-copy sh_url" href="http://c.biancheng.net/view/vip_7049.html#" style="display: none;">复制</a><a class="snippet-text sh_url" href="http://c.biancheng.net/view/vip_7049.html#">纯文本</a><a class="snippet-window sh_url" href="http://c.biancheng.net/view/vip_7049.html#">复制</a></pre></div><pre class="cpp sh_cpp snippet-formatted sh_sourceCode"><ol class="snippet-num"><li><span class="sh_usertype">import</span><span class="sh_normal"> </span>java<span class="sh_symbol">.</span>util<span class="sh_symbol">.</span>Scanner<span class="sh_symbol">;</span></li><li><span class="sh_keyword">public</span> <span class="sh_keyword">class</span><span class="sh_normal"> </span><span class="sh_classname">Test</span> <span class="sh_cbracket">{</span></li><li>    <span class="sh_keyword">public</span> <span class="sh_keyword">static</span> <span class="sh_type">void</span> <span class="sh_function">main</span><span class="sh_symbol">(</span>String<span class="sh_symbol">[]</span> args<span class="sh_symbol">)</span> <span class="sh_cbracket">{</span></li><li>        <span class="sh_comment">// 在这里编写其他代码</span></li><li>    <span class="sh_cbracket">}</span></li><li><span class="sh_cbracket">}</span></li></ol></pre><pre class="snippet-textonly sh_sourceCode" style="display:none;">import java.util.Scanner;
public class Test {
    public static void main(String[] args) {
        // 在这里编写其他代码
    }
}</pre></div></div>
2）在 main() 方法中编写 Java 代码，获取用户输入的年份和月份，其实现代码如下：
<div class="snippet-container" style="undefined;"><div class="sh_bright snippet-wrap"><div class="snippet-menu sh_sourceCode" style="display:none;"><pre><a class="snippet-copy sh_url" href="http://c.biancheng.net/view/vip_7049.html#" style="display: none;">复制</a><a class="snippet-text sh_url" href="http://c.biancheng.net/view/vip_7049.html#">纯文本</a><a class="snippet-window sh_url" href="http://c.biancheng.net/view/vip_7049.html#">复制</a></pre></div><pre class="cpp sh_cpp snippet-formatted sh_sourceCode"><ol class="snippet-num"><li><span class="sh_usertype">Scanner</span><span class="sh_normal"> </span>sc <span class="sh_symbol">=</span> <span class="sh_keyword">new</span> <span class="sh_function">Scanner</span><span class="sh_symbol">(</span>System<span class="sh_symbol">.</span>in<span class="sh_symbol">);</span></li><li>System<span class="sh_symbol">.</span>out<span class="sh_symbol">.</span><span class="sh_function">println</span><span class="sh_symbol">(</span><span class="sh_string">"请输入年份(注: 必须大于 1990 年):"</span><span class="sh_symbol">);</span></li><li><span class="sh_type">int</span> year <span class="sh_symbol">=</span> sc<span class="sh_symbol">.</span><span class="sh_function">nextInt</span><span class="sh_symbol">();</span></li><li>System<span class="sh_symbol">.</span>out<span class="sh_symbol">.</span><span class="sh_function">println</span><span class="sh_symbol">(</span><span class="sh_string">"请输入月份:"</span><span class="sh_symbol">);</span></li><li><span class="sh_type">int</span> month <span class="sh_symbol">=</span> sc<span class="sh_symbol">.</span><span class="sh_function">nextInt</span><span class="sh_symbol">();</span></li></ol></pre><pre class="snippet-textonly sh_sourceCode" style="display:none;">Scanner sc = new Scanner(System.in);
System.out.println("请输入年份(注: 必须大于 1990 年):");
int year = sc.nextInt();
System.out.println("请输入月份:");
int month = sc.nextInt();</pre></div></div>
3）根据用户输入的年份，判断该年份是闰年还是平年，其实现代码如下：
<div class="snippet-container" style="undefined;"><div class="sh_bright snippet-wrap"><div class="snippet-menu sh_sourceCode" style="display:none;"><pre><a class="snippet-copy sh_url" href="http://c.biancheng.net/view/vip_7049.html#" style="display: none;">复制</a><a class="snippet-text sh_url" href="http://c.biancheng.net/view/vip_7049.html#">纯文本</a><a class="snippet-window sh_url" href="http://c.biancheng.net/view/vip_7049.html#">复制</a></pre></div><pre class="cpp sh_cpp snippet-formatted sh_sourceCode"><ol class="snippet-num"><li><span class="sh_usertype">boolean</span><span class="sh_normal"> </span>isRen<span class="sh_symbol">;</span></li><li><span class="sh_keyword">if</span><span class="sh_symbol">((</span>year<span class="sh_symbol">%</span><span class="sh_number">4</span><span class="sh_symbol">==</span><span class="sh_number">0</span> <span class="sh_symbol">&amp;&amp;</span> year<span class="sh_symbol">%</span><span class="sh_number">100</span><span class="sh_symbol">!=</span><span class="sh_number">0</span><span class="sh_symbol">)||(</span>year<span class="sh_symbol">%</span><span class="sh_number">400</span><span class="sh_symbol">==</span><span class="sh_number">0</span><span class="sh_symbol">))</span> <span class="sh_cbracket">{</span></li><li>    System<span class="sh_symbol">.</span>out<span class="sh_symbol">.</span><span class="sh_function">println</span><span class="sh_symbol">(</span>year<span class="sh_symbol">+</span><span class="sh_string">"闰年"</span><span class="sh_symbol">);</span></li><li>    isRen <span class="sh_symbol">=</span> <span class="sh_keyword">true</span><span class="sh_symbol">;</span></li><li><span class="sh_cbracket">}</span> <span class="sh_keyword">else</span> <span class="sh_cbracket">{</span></li><li>    System<span class="sh_symbol">.</span>out<span class="sh_symbol">.</span><span class="sh_function">println</span><span class="sh_symbol">(</span>year<span class="sh_symbol">+</span><span class="sh_string">"平年"</span><span class="sh_symbol">);</span></li><li>    isRen <span class="sh_symbol">=</span> <span class="sh_keyword">false</span><span class="sh_symbol">;</span></li><li><span class="sh_cbracket">}</span></li></ol></pre><pre class="snippet-textonly sh_sourceCode" style="display:none;">boolean isRen;
if((year%4==0 &amp;&amp; year%100!=0)||(year%400==0)) {
    System.out.println(year+"闰年");
    isRen = true;
} else {
    System.out.println(year+"平年");
    isRen = false;
}</pre></div></div>
4）根据用户输入的月份，判断该月的天数，其实现代码如下：
<div class="snippet-container" style="undefined;"><div class="sh_bright snippet-wrap"><div class="snippet-menu sh_sourceCode" style="display:none;"><pre><a class="snippet-copy sh_url" href="http://c.biancheng.net/view/vip_7049.html#" style="display: none;">复制</a><a class="snippet-text sh_url" href="http://c.biancheng.net/view/vip_7049.html#">纯文本</a><a class="snippet-window sh_url" href="http://c.biancheng.net/view/vip_7049.html#">复制</a></pre></div><pre class="cpp sh_cpp snippet-formatted sh_sourceCode"><ol class="snippet-num"><li><span class="sh_type">int</span> day <span class="sh_symbol">=</span> <span class="sh_number">0</span><span class="sh_symbol">;</span></li><li><span class="sh_keyword">switch</span><span class="sh_symbol">(</span>month<span class="sh_symbol">)</span> <span class="sh_cbracket">{</span></li><li>    <span class="sh_keyword">case</span> <span class="sh_number">1</span><span class="sh_symbol">:</span></li><li>    <span class="sh_keyword">case</span> <span class="sh_number">3</span><span class="sh_symbol">:</span></li><li>    <span class="sh_keyword">case</span> <span class="sh_number">5</span><span class="sh_symbol">:</span></li><li>    <span class="sh_keyword">case</span> <span class="sh_number">7</span><span class="sh_symbol">:</span></li><li>    <span class="sh_keyword">case</span> <span class="sh_number">8</span><span class="sh_symbol">:</span></li><li>    <span class="sh_keyword">case</span> <span class="sh_number">10</span><span class="sh_symbol">:</span></li><li>    <span class="sh_keyword">case</span> <span class="sh_number">12</span><span class="sh_symbol">:</span></li><li>        day <span class="sh_symbol">=</span> <span class="sh_number">31</span><span class="sh_symbol">;</span></li><li>        <span class="sh_keyword">break</span><span class="sh_symbol">;</span></li><li>    <span class="sh_keyword">case</span> <span class="sh_number">4</span><span class="sh_symbol">:</span></li><li>    <span class="sh_keyword">case</span> <span class="sh_number">6</span><span class="sh_symbol">:</span></li><li>    <span class="sh_keyword">case</span> <span class="sh_number">9</span><span class="sh_symbol">:</span></li><li>    <span class="sh_keyword">case</span> <span class="sh_number">11</span><span class="sh_symbol">:</span></li><li>        day <span class="sh_symbol">=</span> <span class="sh_number">30</span><span class="sh_symbol">;</span></li><li>        <span class="sh_keyword">break</span><span class="sh_symbol">;</span></li><li>    <span class="sh_keyword">default</span><span class="sh_symbol">:</span></li><li>        <span class="sh_keyword">if</span><span class="sh_symbol">(</span>isRen<span class="sh_symbol">)</span> <span class="sh_cbracket">{</span></li><li>            day <span class="sh_symbol">=</span> <span class="sh_number">29</span><span class="sh_symbol">;</span></li><li>        <span class="sh_cbracket">}</span> <span class="sh_keyword">else</span> <span class="sh_cbracket">{</span></li><li>            day <span class="sh_symbol">=</span> <span class="sh_number">28</span><span class="sh_symbol">;</span></li><li>        <span class="sh_cbracket">}</span></li><li>        <span class="sh_keyword">break</span><span class="sh_symbol">;</span></li><li><span class="sh_cbracket">}</span></li><li>System<span class="sh_symbol">.</span>out<span class="sh_symbol">.</span><span class="sh_function">println</span><span class="sh_symbol">(</span>year<span class="sh_symbol">+</span><span class="sh_string">"年"</span><span class="sh_symbol">+</span>month<span class="sh_symbol">+</span><span class="sh_string">"月共有"</span><span class="sh_symbol">+</span>day<span class="sh_symbol">+</span><span class="sh_string">"天"</span><span class="sh_symbol">);</span></li></ol></pre><pre class="snippet-textonly sh_sourceCode" style="display:none;">int day = 0;
switch(month) {
    case 1:
    case 3:
    case 5:
    case 7:
    case 8:
    case 10:
    case 12:
        day = 31;
        break;
    case 4:
    case 6:
    case 9:
    case 11:
        day = 30;
        break;
    default:
        if(isRen) {
            day = 29;
        } else {
            day = 28;
        }
        break;
}
System.out.println(year+"年"+month+"月共有"+day+"天");</pre></div></div>
5）该程序代码执行结果如下所示：
<pre class="info-box">请输入年份(注: 必须大于 1990 年):
2014
请输入月份:
2
2014平年
2014年2月共有28天</pre>
<pre class="info-box">请输入年份(注: 必须大于 1990 年):
2000
请输入月份:
2
2000闰年
2000年2月共有29天</pre>
</div>
			<div id="arc-append">
	<p>关注微信公众号「站长严长生」，在手机上阅读所有教程，随时随地都能学习。本公众号由<a class="col-link" href="http://c.biancheng.net/view/8092.html" target="_blank" rel="nofollow">C语言中文网站长</a>运营，每日更新，坚持原创，敢说真话，凡事有态度。</p>
	<p style="margin-top:12px; text-align:center;">
		<img width="180" src="./3.13Java项目实战：判断闰年平年并输出某月的天数_files/qrcode_weixueyuan_original.png" alt="魏雪原二维码"><br>
		<span class="col-green">微信扫描二维码关注公众号</span>
	</p>
</div>
<!-- <p>关注微信公众号「魏雪原」，跟着<a class="col-link" href="/view/8092.html" target="_blank">站长</a>一起学习，拒绝躺平，跳出内卷，用知识完成阶级跃升：</p>
	<ul>
		<li>每日更新，坚持原创，敢说真话，凡事有态度。</li>
		<li>编程+求职+创业+营销，既有硬知识，也有软技能。</li>
		<li>手机端阅读教程，随时随地都能学习。</li>
		<li>即将绑定网站部分功能，包括注册登录、找回密码、获取下载链接等。</li>
	</ul> -->
			<div class="pre-next-page clearfix">
                    <span class="pre left"><span class="icon">&lt;</span> <span class="text-brief text-brief-pre">上一页</span><a href="http://c.biancheng.net/view/756.html">Java continue语句</a></span>
                    <span class="next right"><a href="http://c.biancheng.net/view/760.html">Java输出杨辉三角形</a><span class="text-brief text-brief-next">下一页</span> <span class="icon">&gt;</span></span>
                </div>
			<div id="ad-arc-bottom"></div>

<!-- <div id="ad-bottom-weixin" class="clearfix">
	<div class="left" style="width: 535px;">
		<p><span class="col-red">编程帮</span>，一个分享编程知识的公众号。跟着<a class="col-link" href="/cpp/about/author/" target="_blank">站长</a>一起学习，每天都有进步。</p>
		<p>通俗易懂，深入浅出，一篇文章只讲一个知识点。</p>
		<p>文章不深奥，不需要钻研，在公交、在地铁、在厕所都可以阅读，随时随地涨姿势。</p>
		<p>文章不涉及代码，不烧脑细胞，人人都可以学习。</p>
		<p>当你决定关注「编程帮」，你已然超越了90%的程序员！</p>
	</div>
	<div class="right" style="width: 150px;">
		<img width="150" src="/templets/new/images/erweima_biancheng.gif?v=1.6.72" alt="编程帮二维码" /><br />
		<span class="col-green">微信扫描二维码关注</span>
	</div>
</div> -->

<div id="nice-arcs" class="box-bottom">
	<h4>优秀文章</h4>
	<ul class="clearfix">
<li><a href="http://c.biancheng.net/view/246.html" title="结构体指针，C语言结构体指针详解">结构体指针，C语言结构体指针详解</a></li>
<li><a href="http://c.biancheng.net/view/427.html" title="C++ vector插入元素(数据)详解">C++ vector插入元素(数据)详解</a></li>
<li><a href="http://c.biancheng.net/view/562.html" title="C语言最大公约数和最小公倍数">C语言最大公约数和最小公倍数</a></li>
<li><a href="http://c.biancheng.net/view/737.html" title="Linux tail命令：显示文件结尾的内容">Linux tail命令：显示文件结尾的内容</a></li>
<li><a href="http://c.biancheng.net/view/2180.html" title="Python去除字符串中空格（删除指定字符）的3种方法">Python去除字符串中空格（删除指定字符）的3种方法</a></li>
<li><a href="http://c.biancheng.net/view/2560.html" title="Python tempfile模块：生成临时文件和临时目录">Python tempfile模块：生成临时文件和临时目录</a></li>
<li><a href="http://c.biancheng.net/view/4304.html" title="MyBatis的工作原理">MyBatis的工作原理</a></li>
<li><a href="http://c.biancheng.net/view/6481.html" title="FTP内部命令大汇总">FTP内部命令大汇总</a></li>
<li><a href="http://c.biancheng.net/view/8184.html" title="JS生成随机数（random()函数）">JS生成随机数（random()函数）</a></li>
<li><a href="http://c.biancheng.net/jsp2/expression.html" title="JSP表达式">JSP表达式</a></li>
</ul>
</div>
		</div>
		
	</div>
</div>
<script type="text/javascript">
// 当前文章ID
window.arcIdRaw = 'a_' + 7049;
window.arcId = "1a3b3Q8Pio9WUJa7vr42FqTEZigb2LQNz4V/GYwgc1RxvcTS8pYZOj+5wXA";
window.typeidChain = "93|79";
</script>
<div id="footer" class="clearfix">
	<div class="info left">
	<p>精美而实用的网站，分享优质编程教程，帮助有志青年。千锤百炼，只为大作；精益求精，处处斟酌；这种教程，看一眼就倾心。</p>
	<p>
		<a href="http://c.biancheng.net/view/8066.html" target="_blank" rel="nofollow">关于网站</a> <span>|</span>
		<a href="http://c.biancheng.net/view/8092.html" target="_blank" rel="nofollow">关于站长</a> <span>|</span>
		<a href="http://c.biancheng.net/view/8097.html" target="_blank" rel="nofollow">如何完成一部教程</a> <span>|</span>
		<a href="http://c.biancheng.net/view/8093.html" target="_blank" rel="nofollow">联系我们</a> <span>|</span>
		<a href="http://c.biancheng.net/sitemap/" target="_blank" rel="nofollow">网站地图</a>
	</p>
	<p>Copyright ©2012-2021 biancheng.net, <a href="http://www.beian.miit.gov.cn/" target="_blank" rel="nofollow" style="color:#666;">陕ICP备15000209号</a></p>
	</div>
	<img class="right" src="./3.13Java项目实战：判断闰年平年并输出某月的天数_files/logo_bottom.gif" alt="底部Logo">
	<span id="return-top"><b>↑</b></span>
</div>

<script type="text/javascript">
window.siteId = 4;
window.cmsTemplets = "/templets/new";
window.cmsTempletsVer = "1.6.72";
</script>

<script src="./3.13Java项目实战：判断闰年平年并输出某月的天数_files/jquery1.12.4.min.js.下载"></script>
<script src="./3.13Java项目实战：判断闰年平年并输出某月的天数_files/common.js.下载"></script>
<span style="display:none;"><script src="./3.13Java项目实战：判断闰年平年并输出某月的天数_files/z_stat.php" type="text/javascript" defer="defer" async="async"></script></span>

</body></html>